Part Number Hot Search : 
Z8681B1 SMC130C 8599B 4742A 15757F 12XXX CAT523LI TLP3545
Product Description
Full Text Search
 

To Download 466130 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  features ? high performance, low power avr ? 8-bit microcontroller ? advanced risc architecture ? 135 powerful instructions ? most single clock cycle execution ? 32 x 8 general purpose working registers ? fully static operation ? up to 16 mips throughput at 16 mhz ? on-chip 2-cycle multiplier ? non-volatile program and data memories ? 32/64/128k bytes of in-sys tem self-programmable flash ? endurance: 100,000 write/erase cycles ? optional boot code section with independent lock bits ? usb bootloader programmed by default in the factory ? in-system programming by on-chip b oot program hardware activated after reset ? true read-while-w rite operation ? all supplied parts are preprogram ed with a defaul t usb bootloader ? 1k/2k/4k (32k/64k /128k flash version) bytes eeprom ? endurance: 100,000 write/erase cycles ? 2.5k/4k/8k (32k/64k/128k flash version) bytes internal sram ? up to 64k bytes optional external memory space ? programming lock for software security ? jtag (ieee std. 1149.1 compliant) interface ? boundary-scan capabilities a ccording to the jtag standard ? extensive on-chip debug support ? programming of flas h, eeprom, fuses, and lock bits through the jtag interface ? usb 2.0 full-speed/l ow-speed device an d on-the-go module ? complies fully with: ? universal serial bus specification rev 2.0 ? on-the-go supplement to the usb 2.0 specification rev 1.0 ? supports data transfer rates up to 12 mbit/s and 1.5 mbit/s ? usb full-speed/low speed device module with inte rrupt on transfer completion ? endpoint 0 for control transfers : up to 64-bytes ? 6 programmable endpoints with in or out directions and with bulk, interrupt or isochronous transfers ? configurable endpoints size up to 256 bytes in double bank mode ? fully independant 832 bytes usb dp ram for endpoint memory allocation ? suspend/resume interrupts ? power-on reset and usb bus reset ? 48 mhz pll for full-speed bus operation ? usb bus disconnection on microcontroller request ? usb otg reduced host : ? supports host negotiation protocol (hnp) and session request protocol (srp) for otg dual-role devices ? provide status and control signals for software implementation of hnp and srp ? provides programmable times required for hnp and srp ? peripheral features ? two 8-bit timer/counte rs with separate prescaler and compare mode ? two16-bit timer/counter with separate prescaler, compare- and capture mode 8-bit microcontroller with 64/128k bytes of isp flash and usb controller atmega32u6* at90usb646 at90usb647 at90usb1286 at90usb1287 summary *preliminary 7593js?avr?03/09
2 7593js?avr?03/09 atmega32u6/at90usb64/128 ? real time counter with separate oscillator ? four 8-bit pwm channels ? six pwm channels with programmabl e resolution from 2 to 16 bits ? output compare modulator ? 8-channels, 10-bit adc ? programmable serial usart ? master/slave spi serial interface ? byte oriented 2-wire serial interface ? programmable watchdog timer with separate on-chip oscillator ? on-chip analog comparator ? interrupt and wake-up on pin change ? special microcontroller features ? power-on reset and programmable brown-out detection ? internal calibrated oscillator ? external and internal interrupt sources ? six sleep modes: idle, adc noise reduction, power- save, power-down, standby, and extended standby ? i/o and packages ? 48 programmable i/o lines ? 64-lead tqfp and 64-lead qfn ? operating voltages ? 2.7 - 5.5v ? operating temperature ? industrial (- 40c to +85c) ? maximum frequency ? 8 mhz at 2.7v - industrial range ? 16 mhz at 4.5v - industrial range
3 7593js?avr?03/09 atmega32u6/at90usb64/128 1. pin configurations figure 1-1. pinout atmega32u6/at90usb64/128-tqfp atmega32u6 at90usb90128/64 tqfp64 (int.7/ain.1/uvcon) pe7 uvcc d- d+ ugnd ucap vbus (iuid) pe3 (ss/pcint0) pb0 (int.6/ain.0) pe6 (pcint1/sclk) pb1 (pdi/pcint2/mosi) pb2 (pdo/pcint3/miso) pb3 (pcint4/oc.2a) pb4 (pcint5/oc.1a) pb5 (pcint6/oc.1b) pb6 (pcint7/oc.0a/oc.1c) pb7 (int4/tosc1) pe4 (int.5/tosc2) pe5 reset vcc gnd xtal2 xtal1 (oc0b/scl/int0) pd0 (oc2b/sda/int1) pd1 (rxd1/int2) pd2 (txd1/int3) pd3 (icp1) pd4 (xck1) pd5 pa3 (ad3) pa4 (ad4) pa5 (ad5) pa6 (ad6) pa7 (ad7) pe2 (ale/hwb) pc7 (a15/ic.3/clko) pc6 (a14/oc.3a) pc5 (a13/oc.3b) pc4 (a12/oc.3c) pc3 (a11/t.3) pc2 (a10) pc1 (a9) pc0 (a8) pe1 (rd) pe0 (wr) avcc gnd aref pf0 (adc0) pf1 (adc1) pf2 (adc2) pf3 (adc3) pf4 (adc4/tck) pf5 (adc5/tms) pf6 (adc6/tdo) pf7 (adc7/tdi) gnd vcc pa0 (ad0) pa1 (ad1) pa2 (ad2) (t1) pd6 (t0) pd7 index corner 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
4 7593js?avr?03/09 atmega32u6/at90usb64/128 figure 1-2. pinout atmega32u6/at90usb64/128-qfn note: the large center pad underneath the mlf packages is made of metal and internally connected to gnd. it should be soldered or glued to the boar d to ensure good mechanical stability. if the center pad is left unconnected, the packa ge might loosen from the board. 1.1 disclaimer typical values contained in this datasheet ar e based on simulations and characterization of other avr microcontrollers manufactured on the same process technology. min and max values will be available after the device is characterized. 2. overview the atmega32u6/at90usb64/128 is a low-powe r cmos 8-bit microcontroller based on the avr enhanced risc architecture. by executing pow erful instructions in a single clock cycle, the 2 3 1 4 5 6 7 8 9 10 11 12 13 14 16 33 15 47 46 48 45 44 43 42 41 40 39 38 37 36 35 34 17 18 20 19 21 22 23 24 25 26 27 29 28 32 31 30 52 51 50 49 64 63 62 53 61 60 59 58 57 56 55 54 atmega32u6 at90usb128/64 (64-lead qfn top view) index corner avcc gnd aref pf0 (adc0) pf1 (adc1) pf2 (adc2) pf3 (adc3) pf4 (adc4/tck) pf5 (adc5/tms) pf6 (adc6/tdo) pf7 (adc7/tdi) gnd vcc pa0 (ad0) pa1 (ad1) pa2 (ad2) (int.7/ain.1/uvcon) pe7 uvcc d- d+ ugnd ucap vbus (iuid) pe3 (ss/pcint0) pb0 (int.6/ain.0) pe6 (pcint1/sclk) pb1 (pdi/pcint2/mosi) pb2 (pdo/pcint3/miso) pb3 (pcint4/oc.2a) pb4 (pcint5/oc.1a) pb5 (pcint6/oc.1b) pb6 (pcint7/oc.0a/oc.1c) pb7 (int4/tosc1) pe4 (int.5/tosc2) pe5 vcc gnd xtal2 xtal1 (oc0b/scl/int0) pd0 (oc2b/sda/int1) pd1 (rxd1/int2) pd2 (txd1/int3) pd3 (icp1) pd4 (xck1) pd5 (t1) pd6 (t0) pd7 reset pa3 (ad3) pa4 (ad4) pa5 (ad5) pa6 (ad6) pa7 (ad7) pe2 (ale/hwb) pc7 (a15/ic.3/clko) pc6 (a14/oc.3a) pc5 (a13/oc.3b) pc4 (a12/oc.3c) pc3 (a11/t.3) pc2 (a10) pc1 (a9) pc0 (a8) pe1 (rd) pe0 (wr)
5 7593js?avr?03/09 atmega32u6/at90usb64/128 atmega32u6/at90usb64/128 achieves throughput s approaching 1 mips per mhz allowing the system designer to optimize power consumption versus processing speed. 2.1 block diagram figure 2-1. block diagram program counter st ack pointer program flash mcu control register sram general purpose registers instruction register timer/ counters instruction decoder data dir. reg. port b data dir. reg. port e data dir. reg. port a data dir. reg. port d data register port b data register port e data register port a data register port d interrupt unit eeprom spi usart1 st atus register z y x alu por t b drivers por t e drivers por t a drivers por t f drivers por t d drivers por t c drivers pb7 - pb0 pe7 - pe0 pa7 - p a0 pf7 - pf0 reset vcc agnd gnd aref xt al1 xt al2 control lines + - analog comp arator pc7 - pc0 internal oscilla tor watchdog timer 8-bit da ta bus avcc usb timing and control oscilla tor calib. osc data dir. reg. port c data register port c on-chip debug jtag tap programming logic boundary- scan data dir. reg. port f data register port f adc por - bod reset pd7 - pd0 two-wire serial interface pll
6 7593js?avr?03/09 atmega32u6/at90usb64/128 the avr core combines a rich instruction set with 32 general purpose working registers. all the 32 registers are directly connected to the arithmetic logic unit (alu), allowing two independent registers to be accessed in one single instruction executed in one clock cycle. the resulting architecture is more code efficient while achiev ing throughputs up to ten times faster than con- ventional cisc microcontrollers. the atmega32u6/at90usb64/128 provides the following features: 32/64/128k bytes of in- system programmable flash with read-while-write capabilities, 1k/2k/4k bytes eeprom, 2.5k/4k/8k bytes sram, 48 general purpose i/o lines, 32 general purpose working registers, real time counter (rtc), four flexible timer/counters with compare modes and pwm, one usart, a byte oriented 2-wire serial interfac e, a 8-channels, 10-bit adc with optional differen- tial input stage with programmabl e gain, programmable watchdog timer with internal oscillator, an spi serial port, ieee std. 1149.1 compliant jt ag test interface, also used for accessing the on-chip debug system and programming and six software selectable power saving modes. the idle mode stops the cpu while allowing the sram, timer/counters, spi port, and interrupt sys- tem to continue functioning. the power-down mode saves the register contents but freezes the oscillator, disabling all other ch ip functions until the next interr upt or hardware reset. in power- save mode, the asynchronous timer continues to run, allowing the user to maintain a timer base while the rest of the device is sleeping. the adc noise reduction mode stops the cpu and all i/o modules except asynchronous timer and adc, to minimize switching noise during adc conversions. in standby mode, the crystal/resonato r oscillator is running while the rest of the device is sleeping. this allows very fast st art-up combined with lo w power consumption. in extended standby mode, bo th the main oscillator and the asynchronous ti mer continue to run. the device is manufactured using atmel?s high- density nonvolatile memory technology. the on- chip isp flash allows the prog ram memory to be repr ogrammed in-system th rough an spi serial interface, by a conventional nonvolatile memory programmer, or by an on-chip boot program running on the avr core. the boot program can use any interface to download the application program in the applicatio n flash memory. software in the boot flash section will continue to run while the application flash section is updated, providing true read-while-write operation. by combining an 8-bit risc cpu with in-system self-programmable flash on a monolithic chip, the atmel atmega32u6/at90usb64/128 is a power ful microcontroller that provides a highly flexible and cost effective solution to many embedded control applications. the atmega32u6/at90usb64/128 avr is supported with a full suite of program and system development tools including: c compilers, macro assemblers, program debugger/simulators, in- circuit emulators, and evaluation kits.
7 7593js?avr?03/09 atmega32u6/at90usb64/128 2.2 pin descriptions 2.2.1 vcc digital supply voltage. 2.2.2 gnd ground. 2.2.3 avcc analog supply voltage. 2.2.4 port a (pa7..pa0) port a is an 8-bit bi-directional i/o port with internal pull-up resistors (selected for each bit). the port a output buffers have symmetrical drive characteristics with both high sink and source capability. as inputs, port a pi ns that are externally pulled low will source current if the pull-up resistors are activated. the port a pins are tri-stated when a reset condition becomes active, even if the clock is not running. port a also serves the functions of various special features of the atmega32u6/at90usb64/128 as listed on page 79 . 2.2.5 port b (pb7..pb0) port b is an 8-bit bi-directional i/o port with internal pull-up resistors (selected for each bit). the port b output buffers have symmetrical drive characteristics with both high sink and source capability. as inputs, port b pi ns that are externally pulled low will source current if the pull-up resistors are activated. the port b pins are tri-stated when a reset condition becomes active, even if the clock is not running. port b has better driving capabilities than the other ports. port b also serves the functions of various special features of the atmega32u6/at90usb64/128 as listed on page 80 . 2.2.6 port c (pc7..pc0) port c is an 8-bit bi-directional i/o port with internal pull-up resistors (selected for each bit). the port c output buffers have symmetrical drive c haracteristics with bot h high sink and source capability. as inputs, port c pi ns that are externally pulled lo w will source current if the pull-up resistors are activated. the port c pins are tri-stated when a reset condition becomes active, even if the clock is not running. port c also serves the functions of spec ial features of the atmega32u6/at90usb64/128 as listed on page 83 . 2.2.7 port d (pd7..pd0) port d is an 8-bit bi-directional i/o port with internal pull-up resistors (selected for each bit). the port d output buffers have symmetrical drive c haracteristics with bot h high sink and source capability. as inputs, port d pi ns that are externally pulled lo w will source current if the pull-up resistors are activated. the port d pins are tri-stated when a reset condition becomes active, even if the clock is not running. port d also serves the functions of various special features of the atmega32u6/at90usb64/128 as listed on page 84 .
8 7593js?avr?03/09 atmega32u6/at90usb64/128 2.2.8 port e (pe7..pe0) port e is an 8-bit bi-directional i/o port with internal pull-up resistors (selected for each bit). the port e output buffers have symmetrical drive characteristics with both high sink and source capability. as inputs, port e pi ns that are externally pulled low will source current if the pull-up resistors are activated. the port e pins are tri-stated when a reset condition becomes active, even if the clock is not running. port e also serves the functions of various special features of the atmega32u6/at90usb64/128 as listed on page 87 . 2.2.9 port f (pf7..pf0) port f serves as analog inputs to the a/d converter. port f also serves as an 8-bit bi-directional i/o port, if the a/d converter is not used. port pins can provide internal pull-up resistors (selected for each bit). the port f output buffers have sym- metrical drive characteristics with both high sink and source capa bility. as inputs, port f pins that are externally pulled low will source current if the pull-up resistors are ac tivated. the port f pins are tri-stated when a reset condition becomes active, even if the clock is not running. if the jtag interface is enabled, the pull-up resistors on pins pf7( tdi), pf5(tms), and pf4(tck) will be activated even if a reset occurs. port f also serves the functions of the jtag interface. 2.2.10 d- usb full speed / low speed negative data upstream port. should be connected to the usb d- connector pin with a serial 22 ohms resistor. 2.2.11 d+ usb full speed / low speed positive data upstream port. should be connected to the usb d+ connector pin with a serial 22 ohms resistor. 2.2.12 ugnd usb pads ground. 2.2.13 uvcc usb pads internal regulator input supply voltage. 2.2.14 ucap usb pads internal regulator output supply voltage. should be connected to an external capac- itor (1f). 2.2.15 vbus usb vbus monitor and otg negociations. 2.2.16 reset reset input. a low level on this pin for longer than the minimum pulse length will generate a reset, even if the clock is not running. the minimum pulse length is given in table 8-1 on page 58 . shorter pulses are not guaranteed to generate a reset. 2.2.17 xtal1 input to the inverting oscillato r amplifier and input to the in ternal clock operating circuit.
9 7593js?avr?03/09 atmega32u6/at90usb64/128 2.2.18 xtal2 output from the invert ing oscillator amplifier. 2.2.19 avcc avcc is the supply voltage pin for port f and the a/d converter. it should be externally con- nected to v cc , even if the adc is not used. if the adc is used, it should be connected to v cc through a low-pass filter. 2.2.20 aref this is the analog reference pin for the a/d converter. 3. about code examples this documentation contains simple code examples that briefly show how to use various parts of the device. be aware that not all c compiler vendors include bit definitions in the header files and interrupt handling in c is compiler dependent. please confirm with the c compiler documen- tation for more details. these code examples assume that the part specific header file is included before compilation. for i/o registers located in extended i/o map, "i n", "out", "sbis", "sbic", "cbi", and "sbi" instructions must be replaced with instructio ns that allow access to extended i/o. typically "lds" and "sts" combined with "sbrs", "sbrc", "sbr", and "cbr".
10 7593js?avr?03/09 atmega32u6/at90usb64/128 4. register summary address name bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 page (0xff) reserved - - - - - - - - (0xfe) reserved - - - - - - - - (0xfd) reserved - - - - - - - - (0xfc) reserved - - - - - - - - (0xfb) reserved - - - - - - - - (0xfa) reserved - - - - - - - - (0xf9) otgtcon page value (0xf8) upint pint7:0 (0xf7) upbchx - - - - - pbyct10:8 (0xf6) upbclx pbyct7:0 (0xf5) uperrx - counter1:0 crc16 timeout pid datapid datatgl (0xf4) ueint epint6:0 (0xf3) uebchx - - - - -byct10:8 (0xf2) uebclx byct7:0 (0xf1) uedatx dat7:0 (0xf0) ueienx flerre nakine - nakoute rxstpe rxoute stallede txine (0xef) uesta1x - - - - - ctrldir currbk1:0 (0xee) uesta0x cfgok overfi underfi - dtseq1:0 nbusybk1:0 (0xed) uecfg1x epsize2:0 epbk1:0 alloc (0xec) uecfg0x eptype1:0 - - epdir (0xeb) ueconx stallrq stallrqc rstdt epen (0xea) uerst eprst6:0 (0xe9) uenum epnum2:0 (0xe8) ueintx fifocon nakini rwal na kouti rxstpi rxouti stalledi txini (0xe7) reserved - - - - (0xe6) udmfn fncerr (0xe5) udfnumh fnum10:8 (0xe4) udfnuml fnum7:0 (0xe3) udaddr adden uadd6:0 (0xe2) udien uprsme eorsme wakeupe eorste sofe suspe (0xe1) udint uprsmi eorsmi wakeupi eorsti sofi suspi (0xe0) udcon lsm rmwkup detach (0xdf) otgint stoi hnperri roleexi bcerri vberri srpi (0xde) otgien stoe hnperre roleex e bcerre vberre srpe (0xdd) otgcon hnpreq srpreq srpsel vbu shwc vbusreq vbusrqc (0xdc) reserved (0xdb) reserved (0xda) usbint idti vbusti (0xd9) usbsta speed id vbus (0xd8) usbcon usbe host frzclk otgpade idte vbuste (0xd7) uhwcon uimod uide uvcone uvrege (0xd6) reserved (0xd5) reserved (0xd4) reserved (0xd3) reserved (0xd2) reserved - - - - - - - - (0xd1) reserved - - - - - - - - (0xd0) reserved - - - - - - - - (0xcf) reserved - - - - - - - - (0xce) udr1 usart1 i/o data register (0xcd) ubrr1h - - - - usart1 baud rate register high byte (0xcc) ubrr1l usart1 baud rate register low byte (0xcb) reserved - - - - - - - - (0xca) ucsr1c umsel11 umsel10 upm1 1 upm10 usbs1 ucsz11 ucsz10 ucpol1 (0xc9) ucsr1b rxcie1 txcie1 udrie 1 rxen1 txen1 ucsz12 rxb81 txb81 (0xc8) ucsr1a rxc1 txc1 udre1 fe1 dor1 pe1 u2x1 mpcm1 (0xc7) reserved - - - - - - - - (0xc6) reserved - - - - - - - - (0xc5) reserved - - - - - - - - (0xc4) reserved - - - - - - - - (0xc3) reserved - - - - - - - - (0xc2) reserved - - - - - - - - (0xc1) reserved - - - - - - - - (0xc0) reserved - - - - - - - - (0xbf) reserved - - - - - - - -
11 7593js?avr?03/09 atmega32u6/at90usb64/128 (0xbe) reserved - - - - - - - - (0xbd) twamr twam6 twam5 twam4 twam3 twam2 twam1 twam0 - (0xbc) twcr twint twea twsta twsto twwc twen -twie (0xbb) twdr 2-wire serial interface data register (0xba) twar twa6 twa5 twa4 twa3 twa2 twa1 twa0 twgce (0xb9) twsr tws7 tw s6 tws5 tws4 tws3 - twps1 twps0 (0xb8) twbr 2-wire serial interface bit rate register (0xb7) reserved - - - - - - - - (0xb6) assr - exclk as2 tcn2ub ocr2aub ocr2bub tcr2aub tcr2bub (0xb5) reserved - - - - - - - - (0xb4) ocr2b timer/counter2 output compare register b (0xb3) ocr2a timer/counter2 output compare register a (0xb2) tcnt2 timer/counter2 (8 bit) (0xb1) tccr2b foc2a foc2b - - wgm22 cs22 cs21 cs20 (0xb0) tccr2a com2a1 com2a0 com2b1 com2b0 - -wgm21wgm20 (0xaf) updatx pdat7:0 (0xae) upienx flerre nakede - perre txstpe txoute rxstalle rxine (0xad) upcfg2x intfrq7:0 (0xac) upstax cfgok overfi underfi dtseq1:0 nbusybk1:0 (0xab) upcfg1x psize2:0 pbk1:0 alloc (0xaa) upcfg0x ptype1:0 ptoken1:0 pepnum3:0 (0xa9) upconx pfreeze inmode rstdt pen (0xa8) uprst prst6:0 (0xa7) upnum pnum2:0 (0xa6) upintx fifocon nakedi rwal perri txstpi txouti rxstalli rxini (0xa5) upinrqx inrq7:0 (0xa4) uhflen flen7:0 (0xa3) uhfnumh fnum10:8 (0xa2) uhfnuml fnum7:0 (0xa1) uhaddr hadd6:0 (0xa0) uhien hwupe hsofe rxrsme rsmede rste ddisce dconne (0x9f) uhint hwupi hsofi rxrs mi rsmedi rsti ddisci dconni (0x9e) uhcon resume reset sofen (0x9d) ocr3ch timer/counter3 - output compare register c high byte (0x9c) ocr3cl timer/counter3 - output compare register c low byte (0x9b) ocr3bh timer/counter3 - output compare register b high byte (0x9a) ocr3bl timer/counter3 - output compare register b low byte (0x99) ocr3ah timer/counter3 - output compare register a high byte (0x98) ocr3al timer/counter3 - output compare register a low byte (0x97) icr3h timer/counter3 - input capture register high byte (0x96) icr3l timer/counter3 - input capture register low byte (0x95) tcnt3h timer/counter3 - counter register high byte (0x94) tcnt3l timer/counter3 - counter register low byte (0x93) reserved - - - - - - - - (0x92) tccr3c foc3a foc3b foc3c - - - - - (0x91) tccr3b icnc3 ices3 - wgm33 wgm32 cs32 cs31 cs30 (0x90) tccr3a com3a1 com3a0 com3b1 com3b0 com3c1 com3c0 wgm31 wgm30 (0x8f) reserved - - - - - - - - (0x8e) reserved - - - - - - - - (0x8d) ocr1ch timer/counter1 - output compare register c high byte (0x8c) ocr1cl timer/counter1 - output compare register c low byte (0x8b) ocr1bh timer/counter1 - output compare register b high byte (0x8a) ocr1bl timer/counter1 - output compare register b low byte (0x89) ocr1ah timer/counter1 - output compare register a high byte (0x88) ocr1al timer/counter1 - output compare register a low byte (0x87) icr1h timer/counter1 - input capture register high byte (0x86) icr1l timer/counter1 - input capture register low byte (0x85) tcnt1h timer/counter1 - counter register high byte (0x84) tcnt1l timer/counter1 - counter register low byte (0x83) reserved - - - - - - - - (0x82) tccr1c foc1a foc1b foc1c - - - - - (0x81) tccr1b icnc1 ices1 - wgm13 wgm12 cs12 cs11 cs10 (0x80) tccr1a com1a1 com1a0 com1b1 com1b0 com1c1 com1c0 wgm11 wgm10 (0x7f) didr1 - - - - - -ain1dain0d (0x7e) didr0 adc7d adc6d adc5d adc4d adc3d adc2d adc1d adc0d (0x7d) - - - - - - - - - address name bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 page
12 7593js?avr?03/09 atmega32u6/at90usb64/128 (0x7c) admux refs1 refs0 adlar mux4 mux3 mux2 mux1 mux0 (0x7b) adcsrb adhsm acme - - - adts2 adts1 adts0 (0x7a) adcsra aden adsc adate adif adie adps2 adps1 adps0 (0x79) adch adc data register high byte (0x78) adcl adc data register low byte (0x77) reserved - - - - - - - - (0x76) reserved - - - - - - - - (0x75) xmcrb xmbk - - - - xmm2 xmm1 xmm0 (0x74) xmcra sre srl2 srl1 srl0 srw11 srw10 srw01 srw00 (0x73) reserved - - - - - - - - (0x72) reserved - - - - - - - - (0x71) timsk3 - -icie3 - ocie3c ocie3b ocie3a toie3 (0x70) timsk2 - - - - - ocie2b ocie2a toie2 (0x6f) timsk1 - -icie1 - ocie1c ocie1b ocie1a toie1 (0x6e) timsk0 - - - - - ocie0b ocie0a toie0 (0x6d) reserved - - - - - - - - (0x6c) reserved - - - - - - - - (0x6b) pcmsk0 pcint7 pcint6 pcint5 pcint4 pcint3 pcint2 pcint1 pcint0 (0x6a) eicrb isc71 isc70 isc61 isc60 isc51 isc50 isc41 isc40 (0x69) eicra isc31 isc30 isc21 isc20 isc11 isc10 isc01 isc00 (0x68) pcicr - - - - - - -pcie0 (0x67) reserved - - - - - - - - (0x66) osccal oscillator calibration register (0x65) prr1 prusb - - -prtim3 - - prusart1 (0x64) prr0 prtwi prtim2 prtim0 -prtim1prspi - pradc (0x63) reserved - - - - - - - - (0x62) reserved - - - - - - - - (0x61) clkpr clkpce - - - clkps3 clkps2 clkps1 clkps0 (0x60) wdtcsr wdif wdie wdp3 wdce wde wdp2 wdp1 wdp0 0x3f (0x5f) sreg i t h s v n z c 0x3e (0x5e) sph sp15 sp14 sp13 sp12 sp11 sp10 sp9 sp8 0x3d (0x5d) spl sp7 sp6 sp5 sp4 sp3 sp2 sp1 sp0 0x3c (0x5c) reserved - - - - - - - - 0x3b (0x5b) rampz - - - - - - rampz1 rampz0 0x3a (0x5a) reserved - - - - - - - - 0x39 (0x59) reserved - - - - - - - - 0x38 (0x58) reserved - - - - - - - - 0x37 (0x57) spmcsr spmie rwwsb sigrd rwwsre blbset pgwrt pgers spmen 0x36 (0x56) reserved - - - - - - - - 0x35 (0x55) mcucr jtd - -pud - - ivsel ivce 0x34 (0x54) mcusr - - - jtrf wdrf borf extrf porf 0x33 (0x53) smcr - - - - sm2 sm1 sm0 se 0x32 (0x52) reserved - - - - - - - - 0x31 (0x51) ocdr/ mondr ocdr7 ocdr6 ocdr5 ocdr4 ocdr3 ocdr2 ocdr1 ocdr0 monitor data register 0x30 (0x50) acsr acd acbg aco aci acie acic acis1 acis0 0x2f (0x4f) reserved - - - - - - - - 0x2e (0x4e) spdr spi data register 0x2d (0x4d) spsr spif wcol - - - - - spi2x 0x2c (0x4c) spcr spie spe dord mstr cpol cpha spr1 spr0 0x2b (0x4b) gpior2 general purpose i/o register 2 0x2a (0x4a) gpior1 general purpose i/o register 1 0x29 (0x49) pllcsr - - - pllp2 pllp1 pllp0 plle plock 0x28 (0x48) ocr0b timer/counter0 output compare register b 0x27 (0x47) ocr0a timer/counter0 output compare register a 0x26 (0x46) tcnt0 timer/counter0 (8 bit) 0x25 (0x45) tccr0b foc0a foc0b - - wgm02 cs02 cs01 cs00 0x24 (0x44) tccr0a com0a1 com0a0 com0b1 com0b0 - -wgm01wgm00 0x23 (0x43) gtccr tsm - - - - - psrasy psrsync 0x22 (0x42) eearh - - - - eeprom address register high byte 0x21 (0x41) eearl eeprom address register low byte 0x20 (0x40) eedr eeprom data register 0x1f (0x3f) eecr - - eepm1 eepm0 eerie eempe eepe eere 0x1e (0x3e) gpior0 general purpose i/o register 0 0x1d (0x3d) eimsk int7 int6 int5 int4 int3 int2 int1 int0 0x1c (0x3c) eifr intf7 intf6 intf5 intf4 intf3 intf2 intf1 intf0 address name bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 page
13 7593js?avr?03/09 atmega32u6/at90usb64/128 note: 1. for compatibility with future devices, reserved bits shoul d be written to zero if accessed. reserved i/o memory addresse s should never be written. 2. i/o registers within the address range $00 - $1f are directly bit-accessible using th e sbi and cbi instructions. in these reg - isters, the value of single bits can be checked by using the sbis and sbic instructions. 3. some of the status flags are cleared by writing a logical one to them. note that the cbi and sbi instructions will operate on all bits in the i/o register, writing a one back into any flag read as set, thus clearing the flag. the cbi and sbi instruction s work with registers 0x00 to 0x1f only. 4. when using the i/o specific commands in and out, the i/o addresses $00 - $3f must be used. when addressing i/o regis- ters as data space using ld and st instructio ns, $20 must be added to these addresses. the atmega32u6/at90usb64/128 is a complex microcontroller with mo re peripheral units than can be supported within the 64 location reserved in opcode for the in and out instructions. for the extended i/o space from $60 - $1ff in sram, only the st/sts/std and ld/lds/ldd instructions can be used. 0x1b (0x3b) pcifr - - - - - - -pcif0 0x1a (0x3a) reserved - - - - - - - - 0x19 (0x39) reserved - - - - - - - - 0x18 (0x38) tifr3 - -icf3 - ocf3c ocf3b ocf3a tov3 0x17 (0x37) tifr2 - - - - - ocf2b ocf2a tov2 0x16 (0x36) tifr1 - -icf1 - ocf1c ocf1b ocf1a tov1 0x15 (0x35) tifr0 - - - - - ocf0b ocf0a tov0 0x14 (0x34) reserved - - - - - - - - 0x13 (0x33) reserved - - - - - - - - 0x12 (0x32) reserved - - - - - - - - 0x11 (0x31) portf portf7 portf6 portf5 portf4 portf3 portf2 portf1 portf0 0x10 (0x30) ddrf ddf7 ddf6 ddf5 ddf4 ddf3 ddf2 ddf1 ddf0 0x0f (0x2f) pinf pinf7 pinf6 pinf5 pinf4 pinf3 pinf2 pinf1 pinf0 0x0e (0x2e) porte porte7 porte6 porte 5 porte4 porte3 porte2 porte1 porte0 0x0d (0x2d) ddre dde7 dde6 dde5 dde4 dde3 dde2 dde1 dde0 0x0c (0x2c) pine pine7 pine6 pine5 pine4 pine3 pine2 pine1 pine0 0x0b (0x2b) portd portd7 portd6 portd 5 portd4 portd3 portd2 portd1 portd0 0x0a (0x2a) ddrd ddd7 ddd6 ddd5 ddd4 ddd3 ddd2 ddd1 ddd0 0x09 (0x29) pind pind7 pind6 pind5 pind4 pind3 pind2 pind1 pind0 0x08 (0x28) portc portc7 portc6 portc5 portc4 portc3 portc2 portc1 portc0 0x07 (0x27) ddrc ddc7 ddc6 ddc5 ddc4 ddc3 ddc2 ddc1 ddc0 0x06 (0x26) pinc pinc7 pinc6 pinc5 pinc4 pinc3 pinc2 pinc1 pinc0 0x05 (0x25) portb portb7 portb6 portb 5 portb4 portb3 portb2 portb1 portb0 0x04 (0x24) ddrb ddb7 ddb6 d db5 ddb4 ddb3 ddb2 ddb1 ddb0 0x03 (0x23) pinb pinb7 pinb6 pinb5 pinb4 pinb3 pinb2 pinb1 pinb0 0x02 (0x22) porta porta7 porta6 porta 5 porta4 porta3 porta2 porta1 porta0 0x01 (0x21) ddra dda7 dda6 d da5 dda4 dda3 dda2 dda1 dda0 0x00 (0x20) pina pina7 pina6 pina5 pina4 pina3 pina2 pina1 pina0 address name bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 page
14 7593js?avr?03/09 atmega32u6/at90usb64/128 5. instruction set summary mnemonics operands description operation flags #clocks arithmetic and logic instructions add rd, rr add two registers rd rd + rr z,c,n,v,h 1 adc rd, rr add with carry two registers rd rd + rr + c z,c,n,v,h 1 adiw rdl,k add immediate to word rdh:rdl rdh:rdl + k z,c,n,v,s 2 sub rd, rr subtract two registers rd rd - rr z,c,n,v,h 1 subi rd, k subtract constant from register rd rd - k z,c,n,v,h 1 sbc rd, rr subtract with carry two registers rd rd - rr - c z,c,n,v,h 1 sbci rd, k subtract with carry constant from reg. rd rd - k - c z,c,n,v,h 1 sbiw rdl,k subtract immediate from word rdh:rdl rdh:rdl - k z,c,n,v,s 2 and rd, rr logical and registers rd rd ? rr z,n,v 1 andi rd, k logical and register and constant rd rd ? k z,n,v 1 or rd, rr logical or registers rd rd v rr z,n,v 1 ori rd, k logical or register and constant rd rd v k z,n,v 1 eor rd, rr exclusive or registers rd rd rr z,n,v 1 com rd one?s complement rd 0xff ? rd z,c,n,v 1 neg rd two?s complement rd 0x00 ? rd z,c,n,v,h 1 sbr rd,k set bit(s) in register rd rd v k z,n,v 1 cbr rd,k clear bit(s) in register rd rd ? (0xff - k) z,n,v 1 inc rd increment rd rd + 1 z,n,v 1 dec rd decrement rd rd ? 1 z,n,v 1 tst rd test for zero or minus rd rd ? rd z,n,v 1 clr rd clear register rd rd rd z,n,v 1 ser rd set register rd 0xff none 1 mul rd, rr multiply unsigned r1:r0 rd x rr z,c 2 muls rd, rr multiply signed r1:r0 rd x rr z,c 2 mulsu rd, rr multiply signed with unsigned r1:r0 rd x rr z,c 2 fmul rd, rr fractional multiply unsigned r1:r0 (rd x rr) << 1 z,c 2 fmuls rd, rr fractional multiply signed r1:r0 (rd x rr) << 1 z,c 2 fmulsu rd, rr fractional multiply signed with unsigned r1:r0 (rd x rr) << 1 z,c 2 branch instructions rjmp k relative jump pc pc + k + 1 none 2 ijmp indirect jump to (z) pc z none 2 eijmp extended indirect jump to (z) pc (eind:z) none 2 jmp k direct jump pc knone3 rcall k relative subroutine call pc pc + k + 1 none 4 icall indirect call to (z) pc znone4 eicall extended indirect call to (z) pc (eind:z) none 4 call k direct subroutine call pc knone5 ret subroutine return pc stack none 5 reti interrupt return pc stack i 5 cpse rd,rr compare, skip if equal if (rd = rr) pc pc + 2 or 3 none 1/2/3 cp rd,rr compare rd ? rr z, n,v,c,h 1 cpc rd,rr compare with carry rd ? rr ? c z, n,v,c,h 1 cpi rd,k compare register with immediate rd ? k z, n,v,c,h 1 sbrc rr, b skip if bit in register cleared if (rr(b)=0) pc pc + 2 or 3 none 1/2/3 sbrs rr, b skip if bit in regi ster is set if (rr(b)=1) pc pc + 2 or 3 none 1/2/3 sbic p, b skip if bit in i/o register cleared if (p(b)=0) pc pc + 2 or 3 none 1/2/3 sbis p, b skip if bit in i/o register is set if (p(b)=1) pc pc + 2 or 3 none 1/2/3 brbs s, k branch if status flag set if (sreg(s) = 1) then pc pc+k + 1 none 1/2 brbc s, k branch if status flag cleared if (sreg(s) = 0) then pc pc+k + 1 none 1/2 breq k branch if equal if (z = 1) then pc pc + k + 1 none 1/2 brne k branch if not equal if (z = 0) then pc pc + k + 1 none 1/2 brcs k branch if carry set if (c = 1) then pc pc + k + 1 none 1/2 brcc k branch if carry cleared if (c = 0) then pc pc + k + 1 none 1/2 brsh k branch if same or higher if (c = 0) then pc pc + k + 1 none 1/2 brlo k branch if lower if (c = 1) then pc pc + k + 1 none 1/2 brmi k branch if minus if (n = 1) then pc pc + k + 1 none 1/2 brpl k branch if plus if (n = 0) then pc pc + k + 1 none 1/2 brge k branch if greater or equal, signed if (n v= 0) then pc pc + k + 1 none 1/2 brlt k branch if less than zero, signed if (n v= 1) then pc pc + k + 1 none 1/2 brhs k branch if half carry flag set if (h = 1) then pc pc + k + 1 none 1/2 brhc k branch if half carry flag cleared if (h = 0) then pc pc + k + 1 none 1/2 brts k branch if t flag set if (t = 1) then pc pc + k + 1 none 1/2 brtc k branch if t flag cleared if (t = 0) then pc pc + k + 1 none 1/2 brvs k branch if overflow flag is set if (v = 1) then pc pc + k + 1 none 1/2
15 7593js?avr?03/09 atmega32u6/at90usb64/128 brvc k branch if overflow flag is cleared if (v = 0) then pc pc + k + 1 none 1/2 brie k branch if interrupt enabled if ( i = 1) then pc pc + k + 1 none 1/2 brid k branch if interrupt disabled if ( i = 0) then pc pc + k + 1 none 1/2 bit and bit-test instructions sbi p,b set bit in i/o register i/o(p,b) 1none2 cbi p,b clear bit in i/o register i/o(p,b) 0none2 lsl rd logical shift left rd(n+1) rd(n), rd(0) 0 z,c,n,v 1 lsr rd logical shift right rd(n) rd(n+1), rd(7) 0 z,c,n,v 1 rol rd rotate left through carry rd(0) c,rd(n+1) rd(n),c rd(7) z,c,n,v 1 ror rd rotate right through carry rd(7) c,rd(n) rd(n+1),c rd(0) z,c,n,v 1 asr rd arithmetic shift right rd(n) rd(n+1), n=0..6 z,c,n,v 1 swap rd swap nibbles rd(3..0) rd(7..4),rd(7..4) rd(3..0) none 1 bset s flag set sreg(s) 1 sreg(s) 1 bclr s flag clear sreg(s) 0 sreg(s) 1 bst rr, b bit store from register to t t rr(b) t 1 bld rd, b bit load from t to register rd(b) tnone1 sec set carry c 1c1 clc clear carry c 0 c 1 sen set negative flag n 1n1 cln clear negative flag n 0 n 1 sez set zero flag z 1z1 clz clear zero flag z 0 z 1 sei global interrupt enable i 1i1 cli global interrupt disable i 0 i 1 ses set signed test flag s 1s1 cls clear signed test flag s 0 s 1 sev set twos complement overflow. v 1v1 clv clear twos complement overflow v 0 v 1 set set t in sreg t 1t1 clt clear t in sreg t 0 t 1 seh set half carry flag in sreg h 1h1 clh clear half carry flag in sreg h 0 h 1 data transfer instructions mov rd, rr move between registers rd rr none 1 movw rd, rr copy register word rd+1:rd rr+1:rr none 1 ldi rd, k load immediate rd knone1 ld rd, x load indirect rd (x) none 2 ld rd, x+ load indirect and post-inc. rd (x), x x + 1 none 2 ld rd, - x load indirect and pre-dec. x x - 1, rd (x) none 2 ld rd, y load indirect rd (y) none 2 ld rd, y+ load indirect and post-inc. rd (y), y y + 1 none 2 ld rd, - y load indirect and pre-dec. y y - 1, rd (y) none 2 ldd rd,y+q load indirect with displacement rd (y + q) none 2 ld rd, z load indirect rd (z) none 2 ld rd, z+ load indirect and post-inc. rd (z), z z+1 none 2 ld rd, -z load indirect and pre-dec. z z - 1, rd (z) none 2 ldd rd, z+q load indirect with displacement rd (z + q) none 2 lds rd, k load direct from sram rd (k) none 2 st x, rr store indirect (x) rr none 2 st x+, rr store indirect and post-inc. (x) rr, x x + 1 none 2 st - x, rr store indirect and pre-dec. x x - 1, (x) rr none 2 st y, rr store indirect (y) rr none 2 st y+, rr store indirect and post-inc. (y) rr, y y + 1 none 2 st - y, rr store indirect and pre-dec. y y - 1, (y) rr none 2 std y+q,rr store indirect with displacement (y + q) rr none 2 st z, rr store indirect (z) rr none 2 st z+, rr store indirect and post-inc. (z) rr, z z + 1 none 2 st -z, rr store indirect and pre-dec. z z - 1, (z) rr none 2 std z+q,rr store indirect with displacement (z + q) rr none 2 sts k, rr store direct to sram (k) rr none 2 lpm load program memory r0 (z) none 3 lpm rd, z load program memory rd (z) none 3 lpm rd, z+ load program memory and post-inc rd (z), z z+1 none 3 elpm extended load program memory r0 (rampz:z) none 3 elpm rd, z extended load program memory rd (z) none 3 elpm rd, z+ extended load program memory rd (rampz:z), rampz:z rampz:z+1 none 3 mnemonics operands description operation flags #clocks
16 7593js?avr?03/09 atmega32u6/at90usb64/128 spm store program memory (z) r1:r0 none - in rd, p in port rd pnone1 out p, rr out port p rr none 1 push rr push register on stack stack rr none 2 pop rd pop register from stack rd stack none 2 mcu control instructions nop no operation none 1 sleep sleep (see specific descr. for sleep function) none 1 wdr watchdog reset (see specific descr. for wdr/timer) none 1 break break for on-chip debug only none n/a mnemonics operands description operation flags #clocks
17 7593js?avr?03/09 atmega32u6/at90usb64/128 6. ordering information 6.1 atmega32u6 notes: 1. this device can also be supplied in wafer form. please contact your local atmel sales office for detailed ordering info rmation and minimum quantities. 2. pb-free packaging complies to the european directive for re striction of hazardous substa nces (rohs directive).also halide free and fully green. 3. see ?maximum speed vs. vcc? on page 400 . speed(mhz) power supply(v) ordering code (2) usb interface package (1) operating range 20 (3) 2.7-5.5 atmega32u6-au atmega32u6-mu host (otg) md ps industrial (-40 to +85c) md 64 - lead, 14x14 mm body size, 1.0mm body thickness 0.8 mm lead pitch, thin profile plastic quad flat package (tqfp) ps 64 - lead, 9x9 mm body size, 0.50mm pitch quad flat no lead package (qfn)
18 7593js?avr?03/09 atmega32u6/at90usb64/128 6.2 at90usb646 notes: 1. this device can also be supplied in wafer form. please contact your local atmel sales office for detailed ordering info rmation and minimum quantities. 2. pb-free packaging complies to the european directive for re striction of hazardous substa nces (rohs directive).also halide free and fully green. 3. see ?maximum speed vs. vcc? on page 400 . speed(mhz) power supply(v) ordering code (2) usb interface package (1) operating range 20 (3) 2.7-5.5 at90usb646-au at90usb646-mu device md ps industrial (-40 to +85c) md 64 - lead, 14x14 mm body size, 1.0mm body thickness 0.8 mm lead pitch, thin profile plastic quad flat package (tqfp) ps 64 - lead, 9x9 mm body size, 0.50mm pitch quad flat no lead package (qfn)
19 7593js?avr?03/09 atmega32u6/at90usb64/128 6.3 at90usb647 notes: 1. this device can also be supplied in wafer form. please contact your local atmel sales office for detailed ordering info rmation and minimum quantities. 2. pb-free packaging complies to the european directive for re striction of hazardous substa nces (rohs directive).also halide free and fully green. 3. see ?maximum speed vs. vcc? on page 400 . speed(mhz) power supply(v) ordering code (2) usb interface package (1) operating range 20 (3) 2.7-5.5 at90usb647-au at90usb647-mu device md ps industrial (-40 to +85c) md 64 - lead, 14x14 mm body size, 1.0mm body thickness 0.8 mm lead pitch, thin profile plastic quad flat package (tqfp) ps 64 - lead, 9x9 mm body size, 0.50mm pitch quad flat no lead package (qfn)
20 7593js?avr?03/09 atmega32u6/at90usb64/128 6.4 at90usb1286 notes: 1. this device can also be supplied in wafer form. please contact your local atmel sales office for detailed ordering info rmation and minimum quantities. 2. pb-free packaging complies to the european directive for re striction of hazardous substa nces (rohs directive).also halide free and fully green. 3. see ?maximum speed vs. vcc? on page 400 . speed(mhz) power supply(v) ordering code (2) usb interface package (1) operating range 20 (3) 2.7-5.5 at90usb1286-au at90usb1286-mu host (otg) md ps industrial (-40 to +85c) md 64 - lead, 14x14 mm body size, 1.0mm body thickness 0.8 mm lead pitch, thin profile plastic quad flat package (tqfp) ps 64 - lead, 9x9 mm body size, 0.50mm pitch quad flat no lead package (qfn)
21 7593js?avr?03/09 atmega32u6/at90usb64/128 6.5 at90usb1287 notes: 1. this device can also be supplied in wafer form. please contact your local atmel sales office for detailed ordering info rmation and minimum quantities. 2. pb-free packaging complies to the european directive for re striction of hazardous substa nces (rohs directive).also halide free and fully green. 3. see ?maximum speed vs. vcc? on page 400 . speed(mhz) power supply(v) ordering code (2) usb interface package (1) operating range 20 (3) 2.7-5.5 at90usb1287-au at90usb1287-mu device md ps industrial (-40 to +85c) md 64 - lead, 14x14 mm body size, 1.0mm body thickness 0.8 mm lead pitch, thin profile plastic quad flat package (tqfp) ps 64 - lead, 9x9 mm body size, 0.50mm pitch quad flat no lead package (qfn)
22 7593js?avr?03/09 atmega32u6/at90usb64/128 6.6 tqfp64
23 7593js?avr?03/09 atmega32u6/at90usb64/128
24 7593js?avr?03/09 atmega32u6/at90usb64/128 6.7 qfn64
25 7593js?avr?03/09 atmega32u6/at90usb64/128
26 7593js?avr?03/09 atmega32u6/at90usb64/128 7. errata 8. at90usb1287/6 errata. 8.1 at90usb1287/6 errata history note ?*? means a blank or any alphanumeric string 8.2 at90usb1287/6 first release ? incorrect cpu behavior for vbusti and idti interrupts routines ? usb eye diagram violation in low-speed mode ? transient perturbation in usb suspend mode generates over consumption ? vbus session valid threshold voltage ? usb signal rate ? vbus residual level ? spike on twi pins when twi is enabled ? high current consumption in sleep mode ? async timer interrupt wake up from sleep generate multiple interrupts 9. incorrect cpu behavior for vbusti and idti interrupts routines the cpu core may incorrectly execute the interrupt vector related to the vbusti and idti interrupt flags. problem fix/workaround do not enable these in terrupts, firmware must process these usb events by polling vbusti and idti flags. 8. usb eye diagram violation in low-speed mode the low to high transition of d- violates th e usb eye diagram specification when transmitting with low-speed signaling. problem fix/workaround none. 7. transient perturbation in usb suspend mode generates overconsumption in device mode and when the usb is suspended, transient perturbation received on the usb lines generates a wake up state. however the idle state following the perturbation does silicon release 90usb1286-16mu 90usb1287-16au 90usb1287-16mu first release date code up to 0648 date code up to 0714 and lots 0735 6h2726* date code up to 0701 second release date code from 0709 to 0801 except lots 0801 7h5103* from date code 0722 to 0806 except lots 0735 6h2726* date code from 0714 to 0810 except lots 0748 7h5103* third release lots 0801 7h5103* and date code from 0814 date code from 0814 lots 0748 7h5103* and date code from 0814
27 7593js?avr?03/09 atmega32u6/at90usb64/128 not set the suspi bit anymore. the internal usb engine remains in suspend mode but the usb differential receiver is still enabled and generates a typical 300a extra-power con- sumption. detection of the suspend state after the transient perturbation should be performed by software (instead of reading the suspi bit). problem fix/workaround usb waiver allows bus powered devices to consume up to 2.5ma in suspend state. 6. vbus session valid threshold voltage the vsession valid threshold voltage is internal ly connected to vbus_valid (4.4v approx.). that causes the device to attach to the bu s only when vbus is greater than vbusvalid instead of v_session valid. thus if vbus is lower than 4. 4v, the device is detached. problem fix/workaround according to the usb power drop budget, this may require connecting the device toa root hub or a self-powered hub. 5. ubs signal rate the average usb signal rate may sometime be measured out of the usb specifications (12mhz 30khz) with short frames. when measured on a long period, the average signal rate value complies with the specifications . this bit rate deviation does not generates com- munication or functional errors. problem fix/workaround none. 4. vbus residual level in usb device and host mode, once a 5v level has been detected to the vbus pad, a resid- ual level (about 3v) can be measured on the vbus pin. problem fix/workaround none. 3. spike on twi pins when twi is enabled 100 ns negative spike occurs on sda and scl pins when twi is enabled. problem fix/workaround no known workaround, enable atmega32u6/at 90usb64/128 twi first versus the others nodes of the twi network. 2. high current consumption in sleep mode if a pending interrupt cannot wake the part up from the selected mode, the current consump- tion will increase during sleep when executing the sleep instruction directly after a sei instruction. problem fix/workaround before entering sleep, interrupts not used to wake up the part from the sleep mode should be disabled. 1. asynchronous timer interrupt wake up from sleep generates multiple interrupts
28 7593js?avr?03/09 atmega32u6/at90usb64/128 if the cpu core is in sleep and wakes-up from an asynchronous timer interrupt and then go back in sleep again it ma y wake up multiple times. problem fix/workaround a software workaround is to wait with performing the sleep instruction until tcnt2>ocr2+1.
29 7593js?avr?03/09 atmega32u6/at90usb64/128 8.3 at90usb1287/6 second release ? incorrect cpu behavior for vbusti and idti interrupts routines ? usb eye diagram violation in low-speed mode ? transient perturbation in usb suspend mode generates over consumption ? vbus session valid threshold voltage ? spike on twi pins when twi is enabled ? high current consumption in sleep mode ? async timer interrupt wake up from sleep generate multiple interrupts 7. incorrect cpu behavior for vbusti and idti interrupts routines the cpu core may incorrectly execute the interrupt vector related to the vbusti and idti interrupt flags. problem fix/workaround do not enable these in terrupts, firmware must process these usb events by polling vbusti and idti flags. 6. usb eye diagram violation in low-speed mode the low to high transition of d- violates th e usb eye diagram specification when transmitting with low-speed signaling. problem fix/workaround none. 5. transient perturbation in usb suspend mode generates overconsumption in device mode and when the usb is suspended, transient perturbation received on the usb lines generates a wake up state. however the idle state following the perturbation does not set the suspi bit anymore. the internal usb engine remains in suspend mode but the usb differential receiver is still enabled and generates a typical 300a extra-power con- sumption. detection of the suspend state after the transient perturbation should be performed by software (instead of reading the suspi bit). problem fix/workaround usb waiver allows bus powered devices to consume up to 2.5ma in suspend state. 4. vbus session valid threshold voltage the vsession valid threshold voltage is internal ly connected to vbus_valid (4.4v approx.). that causes the device to attach to the bu s only when vbus is greater than vbusvalid instead of v_session valid. thus if vbus is lower than 4. 4v, the device is detached. problem fix/workaround according to the usb power drop budget, this may require connecting the device toa root hub or a self-powered hub. 3. spike on twi pins when twi is enabled 100 ns negative spike occurs on sda and scl pins when twi is enabled.
30 7593js?avr?03/09 atmega32u6/at90usb64/128 problem fix/workaround no known workaround, enable atmega32u6/at 90usb64/128 twi first versus the others nodes of the twi network. 2. high current consumption in sleep mode if a pending interrupt cannot wake the part up from the selected mode, the current consump- tion will increase during sleep when executing the sleep instruction directly after a sei instruction. problem fix/workaround before entering sleep, interrupts not used to wake up the part from the sleep mode should be disabled. 1. asynchronous timer interrupt wake up from sleep generates multiple interrupts if the cpu core is in sleep and wakes-up from an asynchronous timer interrupt and then go back in sleep again it ma y wake up multiple times. problem fix/workaround a software workaround is to wait with performing the sleep instruction until tcnt2>ocr2+1.
31 7593js?avr?03/09 atmega32u6/at90usb64/128 8.4 at90usb1287/6 third release ? incorrect cpu behavior for vbusti and idti interrupts routines ? transient perturbation in usb suspend mode generates over consumption ? spike on twi pins when twi is enabled ? high current consumption in sleep mode ? async timer interrupt wake up from sleep generate multiple interrupts 5. incorrect cpu behavior for vbusti and idti interrupts routines the cpu core may incorrectly execute the interrupt vector related to the vbusti and idti interrupt flags. problem fix/workaround do not enable these in terrupts, firmware must process these usb events by polling vbusti and idti flags. 4. transient perturbation in usb suspend mode generates overconsumption in device mode and when the usb is suspended, transient perturbation received on the usb lines generates a wake up state. however the idle state following the perturbation does not set the suspi bit. the internal usb engine remains in suspend mode but the usb differ- ential receiver is still enabled and generates a typical 300a extra-power consumption. detection of the suspend state after the transient perturbation should be performed by soft- ware (instead of reading the suspi bit). problem fix/workaround usb waiver allows bus powered devices to consume up to 2.5ma in suspend state. 3. spike on twi pins when twi is enabled 100 ns negative spike occurs on sda and scl pins when twi is enabled. problem fix/workaround no known workaround, enable atmega32u6/at90usb64/128 twi first, before the others nodes of the twi network. 2. high current consumption in sleep mode if a pending interrupt cannot wake the part up from the selected mode, the current consump- tion will increase during sleep when executing the sleep instruction directly after a sei instruction. problem fix/workaround before entering sleep, interrupts not used to wake up the part from sleep mode should be disabled. 1. asynchronous timer interrupt wake up from sleep generates multiple interrupts if the cpu core is in sleep mode and wakes-up from an asynchronous timer interrupt and then goes back into sleep mode, it may wake up multiple times. problem fix/workaround
32 7593js?avr?03/09 atmega32u6/at90usb64/128 a software workaround is to wait beforeperforming the sleep instruction: until tcnt2>ocr2+1. 9. at90usb647/6 errata. ? incorrect interrupt routine exection for vbusti, idti interrupts flags ? usb eye diagram violation in low-speed mode ? transient perturbation in usb suspend mode generates over consumption ? spike on twi pins when twi is enabled ? high current consumption in sleep mode ? async timer interrupt wake up from sleep generate multiple interrupts 6. incorrect cpu behavior for vbusti and idti interrupts routines the cpu core may incorrectly execute the interrupt vector related to the vbusti and idti interrupt flags. problem fix/workaround do not enable these in terrupts, firmware must process these usb events by polling vbusti and idti flags. 5. usb eye diagram violation in low-speed mode the low to high transition of d- violates th e usb eye diagram specification when transmitting with low-speed signaling. problem fix/workaround none. 4. transient perturbation in usb suspend mode generates overconsumption in device mode and when the usb is suspended, transient perturbation received on the usb lines generates a wake up state. however the idle state following the perturbation does not set the suspi bit anymore. the internal usb engine remains in suspend mode but the usb differential receiver is still enabled and generates a typical 300a extra-power con- sumption. detection of the suspend state after the transient perturbation should be performed by software (instead of reading the suspi bit). problem fix/workaround usb waiver allows bus powered devices to consume up to 2.5ma in suspend state. 3. spike on twi pins when twi is enabled 100 ns negative spike occurs on sda and scl pins when twi is enabled. problem fix/workaround no known workaround, enable atmega32u6/at 90usb64/128 twi first versus the others nodes of the twi network. 2. high current consumption in sleep mode
33 7593js?avr?03/09 atmega32u6/at90usb64/128 if a pending interrupt cannot wake the part up from the selected mode, the current consump- tion will increase during sleep when executing the sleep instruction directly after a sei instruction. problem fix/workaround before entering sleep, interrupts not used to wake up the part from the sleep mode should be disabled. 1. asynchronous timer interrupt wake up from sleep generates multiple interrupts if the cpu core is in sleep and wakes-up from an asynchronous timer interrupt and then go back in sleep mode again it may wake up several times. problem fix/workaround a software workaround is to wait with performing the sleep instruction until tcnt2>ocr2+1.
34 7593js?avr?03/09 atmega32u6/at90usb64/128 10. datasheet revision histor y for atmega32u6/at90usb64/128 please note that the referring page numbers in th is section are referred to this document. the referring revision in this section are referring to the document revision. 10.1 changes from 7593a to 7593b 1. changed default configuration for fuse bytes and security byte. 2. suppression of timer 4,5 registers which does not exist. 3. updated typical application schematics in usb section 10.2 changes from 7593b to 7593c 1. update to package drawings, mqfp64 and tqfp64. 10.3 changes from 7593c to 7593d 1. for further product compatibility, changed usb pll po ssible prescaler configurations. only 8mhz and 16mhz crystal frequencies allows usb operation (see table 6-11 on page 49 ). 10.4 changes from 7593d to 7593e 1. updated pll prescaler table: configuration words are different between at90usb64x and at90usb128x to enable the pll with a 16 mhz source. 2. cleaned up some bits from usb registers, and updated information about otg timers, remote wake-up, reset and connection timings. 3. updated clock distribution tree diagram (usb prescaler source and configuration register). 4. cleaned up register summary. 5. suppressed pcint23:8 that do not exist from external interrupts. 6. updated electrical characteristics. 7. added typical characteristics. 8. update errata section. 10.5 changes from 7593e to 7593f 1. removed ?preliminary? from document status. 2. clarification in stand by mode regarding usb. 10.6 changes from 7593f to 7593g 1. updated errata section. 10.7 changes from 7593g to 7593h 1. added signature information for 64k devices. 2. fixed figure for typical bus powered application 3. added min/max values for bod levels 4. added atmega32u6 product 5. update errata section 6. modified descriptions for hwupe and wakeupe interrupts enable (these interrupts should be enabled only to wake up the cpu core from power down mode).
35 7593js?avr?03/09 atmega32u6/at90usb64/128 7. added description to access unique serial number located in signature row see ?reading the signature row from software? on page 360 . 10.8 changes from 7593h to 7593i 1. updated table 8-2 in ?brown-out detection? on page 60 . unused bod levels removed. 10.9 changes from 7593i to 7593j 1. updated table 8-2 in ?brown-out detection? on page 60 . bod level 100 removed. 2. updated ?ordering information? on page 17 . 3. removed atmega32u6 errata section.
7593js?avr?03/09 headquarters international atmel corporation 2325 orchard parkway san jose, ca 95131 usa tel: 1(408) 441-0311 fax: 1(408) 487-2600 atmel asia unit 1-5 & 16, 19/f bea tower, millennium city 5 418 kwun tong road kwun tong, kowloon hong kong tel: (852) 2245-6100 fax: (852) 2722-1369 atmel europe le krebs 8, rue jean-pierre timbaud bp 309 78054 saint-quentin-en- yvelines cedex france tel: (33) 1-30-60-70-00 fax: (33) 1-30-60-71-11 atmel japan 9f, tonetsu shinkawa bldg. 1-24-8 shinkawa chuo-ku, tokyo 104-0033 japan tel: (81) 3-3523-3551 fax: (81) 3-3523-7581 product contact web site www.atmel.com technical support avr@atmel.com sales contact www.atmel.com/contacts literature requests www.atmel.com/literature disclaimer: the information in this document is provided in connection with atmel products. no license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of atmel products. except as set forth in atmel?s terms and condi- tions of sale located on atmel?s web site, atmel assumes no li ability whatsoever and disclaims any express, implied or statutor y warranty relating to its products including, but not limited to, the implied warranty of merchantability, fitness for a particu lar purpose, or non-infringement. in no event shall atmel be liable for any direct, indirect, consequential, punitive, special or i nciden- tal damages (including, without limitation, damages for loss of profits, business interruption, or loss of information) arising out of the use or inability to use this document, even if atme l has been advised of the possibility of such damages. atmel makes no representations or warranties with respect to the accuracy or comp leteness of the contents of this document and reserves the rig ht to make changes to specifications and product descriptions at any time without notice. atmel does not make any commitment to update the information contained her ein. unless specifically provided otherwise, atmel products are not suitable for, and shall not be used in, automotive applications. atmel?s products are not int ended, authorized, or warranted for use as components in applications in tended to support or sustain life. ? 2009 atmel corporation. all rights reserved. atmel ? , atmel logo and combinations thereof, avr ? and others are registered trademarks or trademarks of atmel corporation or its subsidiaries. other terms and product names may be trademarks of others.


▲Up To Search▲   

 
Price & Availability of 466130

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X